insert timestamps manually in laravel

39

laravel add timestamps to existing table -

$table->dateTime('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->dateTime('updated_at')->nullable();

Comments

Submit
0 Comments